using UnityEngine;

public class MoodDisplayController : MonoBehaviour
{
	public UISprite display;

	private void OnEnable()
	{
		UpdateSprite();
	}

	private void UpdateSprite()
	{
		PlayerMood playerMood = GGPlayerSettings.instance.statsManager.playerMood;
		string spriteForMood = MoodConfig.instance.GetSpriteForMood(playerMood.GetMood());
		UITools.ChangeSprite(display, spriteForMood);
	}

	private void Update()
	{
		UpdateSprite();
	}

	public void OnClickExplanation()
	{
		TableTennisDialog.instance.ShowOk("Send gift?", "Send gifts, invites and requests to your friends to improve your mood", "Ok", null);
	}
}
